#include "mytest_for_customitem.h"
#include <QtGui/QApplication>
#include<qgraphicsview.h>
#include"customItem.h"
int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
	mytest_for_customitem w;
	QGraphicsScene* scene=new QGraphicsScene();
	//scene->addLine(10,20,300,400);
	QPainterPath p=QPainterPath();
	customRectItem* item2=new customRectItem(EllipseItem,67,78,50,60,scene);

	//QGraphicsItem* item2=scene->addLine(0,0,5,5);
	QGraphicsItem* it2=scene->addLine(0,0,65,50);
	//QGraphicsItem* i4=new RotationCenterPoint(0,0,item2);
	//scene->addItem(i4);
	//it->setPos(0,0);
	it2->setPos(0,0);
	item2->SetPosition(65,50);
	//scene->addRect(0,0,80,90)->setBrush(QBrush(QColor(255,0,0)));
	//scene->addItem(item2);
	//delete item2;
	//item2=new QGraphicsEllipseItem(30,30,10,10);
	item2->SetPosition(0,0);
	item2->refresh();
	item2->SetScale(3,5);
	item2->refresh();
	scene->addItem(item2);
	QGraphicsView* view=new QGraphicsView(scene);
	w.setCentralWidget(view);
	w.show();
	return a.exec();
}
